package com.gee.spring.boot.oauth2.auth.entity;

import lombok.Getter;
import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * desc:
 *
 * @author gee
 * @date 2020/04/06 12:17
 */
public class AuthUser extends User {
    @Getter
    @Setter
    public String id;

    public AuthUser(String id,String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
        this.id = id;
    }
}
